using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace SimpleFactory.FactoryMethod
{
    /*
     ! 真正运用起来的时候，客户端还是依赖了具体-FacotryA
     */
    [TestClass]
    public class FactoryClientDepFactoryA
    {
        [TestMethod]
        public void Test()
        {
            IFactory factory = new FactoryA();
            IProduct product = factory.Create();
            Assert.AreEqual<Type>(product.GetType(), typeof(ProductA));
        }
    }
}